package lk.service.blogspringboot.service;

import lk.service.blogspringboot.domain.FollowingDetail;
import lk.service.blogspringboot.util.R;

/**
 * 关注详细信息表(FollowingDetail)表服务接口
 *
 * @author LK
 * @since 2024-08-22 10:33:44
 */
public interface FollowingDetailService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    R queryById(Integer id);

    /**
     * 全查询
     *
     * @param followingDetail 筛选条件
     * @return 查询结果
     */
    R queryAll(FollowingDetail followingDetail);

    /**
     * 新增数据
     *
     * @param followingDetail 实例对象
     * @return 实例对象
     */
    R insert(FollowingDetail followingDetail);

    /**
     * 修改数据
     *
     * @param followingDetail 实例对象
     * @return 实例对象
     */
    R update(FollowingDetail followingDetail);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    R deleteById(Integer id);

    R deleteFollowingByUserNameAndFolloweeName(String userName, String followingUserName);

    R queryIsFollowing(String userName, String followingUserName);
}

